//
//  StaffModel.swift
//  Employee
//
//  Created by swordjoy on 2017/4/7.
//  Copyright © 2017年 remotevillage. All rights reserved.
//

import Foundation
import SwiftyJSON

struct StaffModel: ModelProtocol {
  
  let id: String
  let staffName: String
  
  init(json: JSON) {
    
    id = json["id"].stringValue
    staffName = json["staffName"].stringValue
    
  }
  
  static func array(from jsonArray: [JSON]) -> [StaffModel] {
    return jsonArray.map({
      return StaffModel(json: $0)
    })
  }
  
}
